package edu.sctu.zhoumengxue.day201505.day20150520.mySelf;

/**
 * Created by user12 on 2015/5/20.
 */
public class Main {

    public static void main(String[] args) {

        String[] strings = {"5", "12", "4", "33", "99", "6"};

        int i;
        i = strings.length;
        int[] a = new int[i];
        for (i = 0; i < strings.length; i++) {
            a[i] = Integer.parseInt(strings[i]);
            System.out.println(a[i]);


        }
        System.out.println("排序");
        int k, j, t;
        for (k = 0; k < strings.length; k++) {
            for(j=0;j<strings.length-1;j++){
                if (a[j] > a[j + 1]) {
                    t = a[j];
                    a[j] = a[j + 1];
                    a[j + 1] = t;
                }

            }
            System.out.println(a[k]);

        }
        TextThree textThree = new TextThree();
        textThree.getFor();
        textThree.getFor(85);
    }
    String a="";


}